import config from '../../utils/config';
import apiCreator from '../../utils/apiCreator';

const api = apiCreator();

export default {
  // 查询
  Search: (query) => api.get(`${config.interfaces.type5}portfolio-server/tenant/page-query`, query),
  // 用户绑定
  userbind: (query) => api.post(`${config.interfaces.type5}portfolio-server/tenant/bind`, query),
  // 编辑租户信息
  sysUpdate: (query) => api.post(`${config.interfaces.type5}portfolio-server/tenant/update`, query),
  // 获取下游租户信息
  sysOrgan: (query) => api.get(`${config.interfaces.type5}portfolio-server/tenant/sys-organ`, query),
  // 新增租户信息
  saveTable: (query) => api.post(`${config.interfaces.type5}portfolio-server/tenant/save`, query),
  // 删除租户信息
  deleteUser: (query) => api.post(`${config.interfaces.type5}portfolio-server/tenant/delete/${query}`),
};
